package com.hs.srm.admin.modules.requisition.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.hs.srm.base.common.annotation.DictMapping;
import com.hs.srm.base.common.utils.DictDataUtil;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description sqe试用报告
 * @Author xwx
 * @Date 2020-08-25
 */
@Data
@TableName("sample_order_report")
public class SampleOrderReportEntity {
    @TableId(value = "pk_id", type = IdType.UUID)
    @TableField("pk_id")
    @Excel(name = "PKID", orderNum = "1")
    private String pkId;

    /*
     * 物料编码
     */
    @TableField("material_code")
    @Excel(name = "物料编码", orderNum = "5")
    private String materialCode;

    /*
     * 物料描述(物料名)
     */
    @TableField("material_desc")
    @Excel(name = "物料描述", orderNum = "6")
    private String materialDesc;
    /*
     * 规格
     */
    @TableField("specification")
    @Excel(name = "规格", orderNum = "5")
    private String specification;
    /*
     * 供应商代码
     */
    @TableField("vendor_code")
    @Excel(name = "供应商代码", orderNum = "5")
    private String vendorCode;

    /*
     * 供应商名称
     */
    @TableField("vendor_name")
    @Excel(name = "供应商名称", orderNum = "8")
    private String vendorName;

    /**
     * 创建日期
     */
    @TableField("creation_date")
    @Excel(name = "创建日期", orderNum = "4")
    @JSONField(format = "yyyy-MM-dd")
    private Date creationDate;

    /**
     * 申请单位
     */
    @TableField("applicant")
    @Excel(name = "申请单位", orderNum = "5")
    private String applicant;

    /**
     * 试用原因(1,第一次 2,第二次 3,第三次 4,其他)
     */
    @TableField("reason")
    @Excel(name = "试用原因", orderNum = "1")
    private Integer reason;

    /**
     * 申请试用单位主管
     */
    @TableField("section_supervisor")
    @Excel(name = "申请试用单位主管", orderNum = "5")
    private String sectionSupervisor;

    /**
     * 试用申请人
     */
    @TableField("apply")
    @Excel(name = "试用申请人", orderNum = "10")
    private String apply;

    /**
     * 接收日期
     */
    @TableField("d_date")
    @Excel(name = "接收日期", orderNum = "4")
    @JSONField(format = "yyyy-MM-dd")
    private Date dDate;
    /**
     * 接单时间
     */
    @TableField("sqe_date")
    @Excel(name = "接单时间", orderNum = "4")
    @JSONField(format = "yyyy-MM-dd")
    private Date sqeDate;


    /**
     * 剩余原料处理意见(1,退还供应商 2,正常使用 3,报废 )
     */
    @TableField("material_idea")
    @Excel(name = "剩余原料处理意见", orderNum = "1")
    private String materialIdea;
    /**
     * 試用產品的處理意見(1,正常使用 2,特采使用 3,重工  4,报废)
     */
    @TableField("trial_idea")
    @Excel(name = "試用產品的處理意見", orderNum = "1")
    private String trialIdea;
    /**
     * 綜合評審
     */
    @TableField("comprehensive_assessment")
    @Excel(name = "备注", orderNum = "15")
    private String comprehensiveAssessment;
    /**
     * 数量
     */
    @TableField("count")
    @Excel(name = "数量", orderNum = "1")
    private BigDecimal count;

    /**
     * 是否审核
     */
    @TableField("state_")
    @Excel(name = "是否审核", orderNum = "1")
    private int state;

    /*
     * OA审批单id
     */
    @TableField("oa_doc_id")
    @Excel(name = "", orderNum = "28")
    private java.lang.String oaDocId;

    /**
     * 计量单位
     */
    @TableField("measure_unit")
    @DictMapping(type = DictDataUtil.DictType.JLDW)
    private String measureUnit;

    /*
     * OA审批单id
     */
    @TableField("sample_type")
    @Excel(name = "", orderNum = "28")
    private java.lang.String sampleType;
    /**
     * 预计完成时间
     */
    @TableField("estimated_finish_time")
    @Excel(name = "预计完成时间", orderNum = "4")
    @JSONField(format = "yyyy-MM-dd")
    private Date estimatedFinishTime;




}
